package com.newhis.pattern.chain;

/**
 * 业务聚合
 *
 * @version [V2.0]
 * @package com.newhis.newhisbase.pattern.chain;
 * @description:[用一句话描述该文件做什么]
 * @author: [zhuben]
 * @date: [2024-07-14 13:24]
 * @copyright: 2024 echovin.com
 */

public class ErrorLogger extends AbstractLogger{
    private static ErrorLogger errorLogger = new ErrorLogger(3);

    private ErrorLogger() {

    }

    private ErrorLogger(int level) {
        this.level = level;
    }


    public static ErrorLogger getInstance(){
        return errorLogger;
    }

    @Override
    void write(String message) {
        System.out.println(message);
    }
}